﻿<%@ Page Language="C#" MasterPageFile="~/webadmin/pages/MasterPage.master" AutoEventWireup="true" CodeFile="DanhMuc_TGLV_list.aspx.cs" Inherits="webadmin_pages_Default2" Title="Untitled Page" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Main" Runat="Server">
			<div class="tbl">
			<div class="clear"></div> <!-- End .clear -->
<div class="content-box ">
                
				<div class="content-box-header">
            <h3>
                Danh sách : <span style="color: #00CC00">Danh mục Thời Gian LV </span>
            </h3>
            <div class="clear">
                &nbsp;</div>
        </div>
        <!-- End .content-box-header -->
				
				<div class="content-box-content "  >
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
				
				<!-- Start Notifications -->
			<% if (!string.IsNullOrEmpty(messageError))
      {%>
			<div class="notification error png_bg">
				<a href="#" class="close"><img src="../resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
				<div>
				Thông báo lỗi:  <b><i><%=messageError%></i></b></div>
			</div>
			<%} %>
			
		
			
			<!-- End Notifications -->
				
				<ul class="shortcut-buttons-set">
				    <li><asp:Button ID="btnAdd" runat="server" Text="Thêm mới" OnClick="btnAdd_Click" TabIndex="3" UseSubmitBehavior="False" />
				    </li>
                    <li>Mã:<asp:TextBox ID="txtMa" runat="server"></asp:TextBox></li>
				    <li>Tên:<asp:TextBox ID="txtTen" runat="server"></asp:TextBox></li>
                    <asp:Button ID="btnSearch" runat="server" OnCommand="btnSearch_Command" Text="Tìm kiếm" />
                    <asp:Button ID="txtReset" runat="server" OnCommand="txtReset_Command" Text="Tất cả" /></ul>
		  
		  <div class="clear"></div>
              <!-- End .shortcut-buttons-set -->
              <table class="tbl_list" width="100%">
	            <tr class="tbl_list_head">
                    <th style="width:70px;">Mã Thời Gian LV</th>
                    <th style="width:150px;">Tên Thời Gian LV</th>
                    <th style="width:150px;">Ngày tạo</th>
                    <th style="width:150px;">Mã tài khoản</th>
                    <th style="width:150px;text-align:center;">Hành động</th>
                </tr>
                <asp:Repeater ID="rpt_user_list" runat="server" OnItemDataBound="rpt_user_list_ItemDataBound">
                <ItemTemplate>
	                    <tr class="tbl_list_odl">
		                    <td><%# DataBinder.Eval(Container.DataItem, "ma_thoi_gian_lv")%></td>
		                    <td><%# DataBinder.Eval(Container.DataItem, "ten_thoi_gian_lv")%></td>
		                    <td><%# DataBinder.Eval(Container.DataItem, "ngay_tao")%></td>
		                    <td><%# DataBinder.Eval(Container.DataItem, "ma_nguoi_dung")%></td>
		                    <td align="right">
		                        <a href="DanhMuc_TGLV_detail.aspx?id=<%# DataBinder.Eval(Container.DataItem, "ma_thoi_gian_lv") %>">[Chi tiết]</a>
            	                
	                            <a href="DanhMuc_TGLV_frm.aspx?act=edit&id=<%# DataBinder.Eval(Container.DataItem, "ma_thoi_gian_lv") %>">[sửa]</a>
                  
                                 <a href="javascript:void(0);" onclick="if(confirm('Bạn có chắc xóa thông tin có mã là: <%# DataBinder.Eval(Container.DataItem, "ma_thoi_gian_lv") %> ?')) window.location ='DanhMuc_TGLV_list.aspx?act=del&id=<%# DataBinder.Eval(Container.DataItem, "ma_thoi_gian_lv") %>'  ">[xóa]</a> 
                
	                        </td>
	                    </tr>        
	                </ItemTemplate>
                </asp:Repeater>
</table>
                        <br />



	
				  </div> <!-- End #tab1 -->
				  <div class="pagination">
                      <cc1:PagerV2_8 ID="pagination1" runat="server" GenerateFirstLastSection="True" GenerateGoToSection="True"
                          OnCommand="pagination1_Command" PageSize="10" SmartShortCutRatio="10" />
                      &nbsp;</div>
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
 </div>
</asp:Content>